/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2018-11-27 Time: 23:40
 *
 * 网评列表ListView
 */

import React, {Component} from 'react';
import {
  View,
  FlatList
} from "react-native";
import {styles} from './ReviewListView.Style';
import ReviewListItemView from "./ReviewListItemView"
import DividingLineViewComponent from "../../../../../component/DividingLineViewComponent/DividingLineViewComponent"

let data = [0, 1, 2, 3, 4]
export default class ReviewListView extends Component {

  render() {
    return (
      <View style={styles.body}>

        <FlatList
          data={data}
          renderItem={this._renderItem.bind(this)}
          keyExtractor={(item, index) => index}
          ItemSeparatorComponent={this._renderItemSeparatorComponent}
        />

      </View>
    )
  }

  _renderItem() {
    return (
      <ReviewListItemView/>
    )
  }

  _renderItemSeparatorComponent() {
    return (
      <DividingLineViewComponent lineHeight={2}/>
    )
  }
}


